package com.yang.frost.blueberry.domain;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @author 10296
 * @date 2021/2/20
 * @Description:
 */
public class TreeNode<T> implements Serializable {

    /**
     * 主键
     */
    private String id;
    /**
     * 上级ID
     */
    private String parentId;
    /**
     * 子节点列表
     */
    private List<T> children = new ArrayList<>();

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public List<T> getChildren() {
        return children;
    }

    public void setChildren(List<T> children) {
        this.children = children;
    }
}
